package com.cms.common.model.repository;


import com.cms.common.model.entity.Language;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface LanguageRepository extends JpaSpecificationExecutor<Language>, JpaRepository<Language, Long>, PagingAndSortingRepository<Language, Long> {

    List<Language> findByIsDefault(boolean isDefault);

    Language findByCode(String code);
}